home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000027_icon-group-sender _Thu May 14 12:24:48 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id MAA12481
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 14 May 1998 12:24:48 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA22028; Thu, 14 May 1998 12:24:43 -0700
Message-Id: <3.0.5.32.19980514113425.007b1e80@doors>
X-Sender: bgbauer#alpha.delta.edu@doors
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Thu, 14 May 1998 11:34:25 -0700
To: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
From: Scissors <jebediah@bigfoot.com>
Subject: system command in win95
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1697
Im using win95 and have a few successful uses of the system command,
but i havent tried it with piping or redirection. I dont doubt it
is causing a problem for you though.
So, i've had success with it, but I find it VERY slow. If youre
sending the output to another file... try pausing for 10 seconds, and
then reading the file. I use a system command
system("regedit /e etc...") which exports part of the registry to a file if
you arent familiar with it. And I have had to implement a large pause
before I
can find the file!
if I do:
system(prog) # any command which creates a new? file
every 1 to 50000 do if exists(newfile) then break # file created
if not exists(newfile) then stop("file not created")
Of course, this is just a work around. It was working... but only if my
loop was VERY generous. My conclusion was that system releases before the
command is totally finished. I have no way of knowing who is to blame, dos
or icon.
As for the listing of files in a dir...
Look in io.icn. It contains procedures for reading directories. I believe
it uses internal commands and interupts, and should be much faster and
better than system("DIR"). I havent tried them, so I cant explain, maybe
someone else can. One I believe is DOS_Dir_list? or something similar...
there are a few, check em out.
And finally, another work around, but it will accomplish what you need, is to
write a batch file, then run it. Such as:
batch := open("C:\temp\ver.bat", "w")
write(batch, "VER > ver.log")
close(batch)
system("C:\temp\ver.bat")
Then try reading. Its possible this may not work either though, if
system() is
releasing too soon. *shrug* It's worth a try though.